Skip to content

feat: add CLAUDE.md for AI-assisted development#818

Closed
frostebite wants to merge 2 commits intomainfrom
feat/claude-md
Closed

feat: add CLAUDE.md for AI-assisted development#818
frostebite wants to merge 2 commits intomainfrom
feat/claude-md

Conversation

@frostebite
Copy link
Member

@frostebite frostebite commented Mar 6, 2026

Summary

  • Adds a minimal root-level CLAUDE.md covering project architecture, build system, code conventions, testing, security, and CI workflows
  • Provides Claude Code with enough context to assist with builds, debugging, orchestrator development, and contributions
  • No agents, skills, or per-directory files — intentionally minimal foundation

Closes

Closes #801

Test plan

  • Verify CLAUDE.md renders correctly on GitHub
  • Confirm Claude Code can use it to answer questions about the project (build commands, architecture, conventions)
  • Review for accuracy against current codebase

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Added a comprehensive Unity-Builder guide covering architecture, build flow, conventions, testing, security, and CI usage.
  • Chores

    • Updated CI/workflow branch references and simplified repository clone fallback to use the main branch by default; related tests adjusted accordingly.

Adds a minimal CLAUDE.md covering project architecture, build system,
code conventions, testing, security considerations, and CI workflows.
Provides Claude Code with the context needed to assist with builds,
debugging, orchestrator work, and contributions.

Closes #801

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 6, 2026

📝 Walkthrough

Walkthrough

Added a new CLAUDE.md documentation file and adjusted branch/clone fallback logic across orchestrator-related workflows and tests, switching references from orchestrator-develop to main and simplifying fallback clone sequences.

Changes

Cohort / File(s) Summary
Documentation
CLAUDE.md
New comprehensive documentation for Unity-Builder: quick commands, architecture, provider/plugin model, build pipeline (tsc → ncc), runtime/tooling (Node 20, Volta), coding conventions, testing strategy (Jest, orchestrator e2e), security guidance, and CI workflow notes.
GitHub Workflows
.github/workflows/orchestrator-async-checks.yml
Switched git clone branch from orchestrator-develop to main in clone steps. No other logic changes.
Orchestrator Tests
src/model/orchestrator/tests/e2e/orchestrator-end2end-caching.test.ts
Updated test override value from orchestrator-develop to main.
Orchestrator Workflows / Scripts
src/model/orchestrator/workflows/async-workflow.ts, src/model/orchestrator/workflows/build-automation-workflow.ts
Simplified fallback git clone strategy: removed intermediate orchestrator-develop (and duplicate main) attempt and now try main first, then fall back to a plain repository clone. Minor control-flow change in clone fallback logic.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I hopped through code and left a note,
A CLAUDE guide to keep things afloat,
Branches tidied, fallbacks neat,
Docs and scripts now walk the beat,
Build on, coder friends — joy to tote! 🥕✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Out of Scope Changes check ❓ Inconclusive Beyond the core CLAUDE.md addition, the PR includes branch reference updates from 'orchestrator-develop' to 'main' in workflows and tests, which appear aligned with addressing an obsolete branch but extend slightly beyond the stated PR objectives. Clarify whether the 'orchestrator-develop' to 'main' branch updates are part of the same feature work or should be separated into a distinct PR for cleaner history.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add CLAUDE.md for AI-assisted development' directly and clearly summarizes the main change—adding documentation for Claude Code integration.
Description check ✅ Passed The description covers the main change and closes issue #801, but lacks details on workflow runs, documentation PR status, and test completion status required by the template.
Linked Issues check ✅ Passed The PR adds CLAUDE.md covering all required sections from issue #801 (quick reference, architecture, build system, code conventions, testing, security, CI workflows) and maintains the intentional minimalism without agents or per-directory files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/claude-md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Cat Gif

@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 31.25%. Comparing base (9d47543) to head (3d8edb0).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #818   +/-   ##
=======================================
  Coverage   31.25%   31.25%           
=======================================
  Files          84       84           
  Lines        4563     4563           
  Branches     1103     1103           
=======================================
  Hits         1426     1426           
  Misses       3137     3137           
Files with missing lines Coverage Δ
src/model/orchestrator/workflows/async-workflow.ts 27.77% <ø> (ø)
...rchestrator/workflows/build-automation-workflow.ts 10.44% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@webbertakken
Copy link
Member

Recommend watching this one https://www.youtube.com/watch?v=GcNu6wrLTJc (i.e. strip most of that stuff even)

And shall we link CLAUDE.md to AGENTS.md and make AGENTS.md the main file?

The orchestrator-develop branch no longer exists. Update all fallback
clone commands and test fixtures to use main instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/orchestrator-async-checks.yml:
- Around line 56-58: The git clone step currently always checks out main; update
the run block that contains the "git clone -b main
https://github.com/game-ci/unity-builder" command so it first attempts to check
out the dispatched workflow ref and only falls back to main if that ref is
missing. Use the workflow-provided ref (e.g. the github.ref or github.sha) by
deriving the branch name or committing ref (e.g. ${GITHUB_REF##refs/heads/} or
using ${GITHUB_SHA}) and run git clone then git fetch && git checkout <ref> (or
replace the manual clone with actions/checkout and set ref: ${{ github.ref }}),
ensuring the step that currently contains "git clone -b main
https://github.com/game-ci/unity-builder" and "cd unity-builder" uses the
dispatched ref first.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 86d648de-e7c0-4559-bf25-0db1891c0047

📥 Commits

Reviewing files that changed from the base of the PR and between 9cf65cf and 3d8edb0.

⛔ Files ignored due to path filters (2)
  • dist/index.js is excluded by !**/dist/**
  • dist/index.js.map is excluded by !**/dist/**, !**/*.map
📒 Files selected for processing (4)
  • .github/workflows/orchestrator-async-checks.yml
  • src/model/orchestrator/tests/e2e/orchestrator-end2end-caching.test.ts
  • src/model/orchestrator/workflows/async-workflow.ts
  • src/model/orchestrator/workflows/build-automation-workflow.ts
✅ Files skipped from review due to trivial changes (1)
  • src/model/orchestrator/tests/e2e/orchestrator-end2end-caching.test.ts

Comment on lines 56 to 58
run: |
git clone -b orchestrator-develop https://github.com/game-ci/unity-builder
git clone -b main https://github.com/game-ci/unity-builder
cd unity-builder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Clone the dispatched ref before falling back to main.

workflow_dispatch can run from a feature branch, but this always pulls main, so checks-update ignores the branch the workflow was launched from. That makes branch-specific orchestrator changes impossible to validate here.

Suggested fix
-          git clone -b main https://github.com/game-ci/unity-builder
+          git clone -b "${GITHUB_REF_NAME:-main}" https://github.com/game-ci/unity-builder \
+            || git clone -b main https://github.com/game-ci/unity-builder
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
run: |
git clone -b orchestrator-develop https://github.com/game-ci/unity-builder
git clone -b main https://github.com/game-ci/unity-builder
cd unity-builder
run: |
git clone -b "${GITHUB_REF_NAME:-main}" https://github.com/game-ci/unity-builder \
|| git clone -b main https://github.com/game-ci/unity-builder
cd unity-builder
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/orchestrator-async-checks.yml around lines 56 - 58, The
git clone step currently always checks out main; update the run block that
contains the "git clone -b main https://github.com/game-ci/unity-builder"
command so it first attempts to check out the dispatched workflow ref and only
falls back to main if that ref is missing. Use the workflow-provided ref (e.g.
the github.ref or github.sha) by deriving the branch name or committing ref
(e.g. ${GITHUB_REF##refs/heads/} or using ${GITHUB_SHA}) and run git clone then
git fetch && git checkout <ref> (or replace the manual clone with
actions/checkout and set ref: ${{ github.ref }}), ensuring the step that
currently contains "git clone -b main https://github.com/game-ci/unity-builder"
and "cd unity-builder" uses the dispatched ref first.

@frostebite frostebite closed this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Claude for Unity-Builder — AI-assisted build configuration, debugging, and orchestration

2 participants